﻿using Digitalmes.Core.Domain.Eitites;

namespace Digitalmes.Core.Services;

/// <summary>
/// 转台数据存档服务。
/// </summary>
public interface ITurntableArchiveService : IApplicationService
{
    /// <summary>
    /// 分页查询
    /// </summary>
    Task<(List<TurntableArchiveRecord>, int)> GetPageListAsync(DateTime? startTime, DateTime? endTime, int pageIndex, int pageSize, CancellationToken cancellationToken = default);

    /// <summary>
    /// 查询数据集合
    /// </summary>
    /// <returns></returns>
    Task<List<TurntableArchiveRecord>> GetListAsync(DateTime? startTime, DateTime? endTime, CancellationToken cancellationToken = default);

    /// <summary>
    /// 存档数据
    /// </summary>
    /// <param name="input"></param>
    /// <returns></returns>
    Task ArchiveAsync(TurntableArchiveRecord input);
}
